﻿using IM.Easy.Core.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Core.Exceptions
{
    internal class ExceptionCodeMap
    {
        internal static readonly Dictionary<Type, ResultCode> ExceptionStatusCodes = new()
        {
                { typeof(ArgumentNullException), ResultCode.BadRequest },
                { typeof(UnauthorizedAccessException), ResultCode.Unauthorized },
                {typeof(BisException),ResultCode.BusinessLogicError },
                // 其他异常类型和对应的状态码
         };
    }
}
